<template>
    <div class="sdy-order">
        <sdyHeader title="啥都有 - 订单" back></sdyHeader>
        <div class="address">
            <router-link to="/orderaddress">添加地址</router-link>
        </div>
        全部订单

 
    </div>
</template>


<script setup lang="ts">



// 获取订单信息
import { onMounted ,ref } from 'vue';
import { getOrderApi} from '@/api/order'
import type { MyCartItem} from '@/config/interface'
const userid = window.localStorage.getItem('user_id') as string
const time = window.localStorage.getItem('time') as string

const info =ref<MyCartItem[]>([])
const getOrder = async () =>{
    const res = await getOrderApi(userid)
    console.log(res)
}

onMounted(() =>{
    getOrder()
})


</script>

<style scoped lang="scss">
.sdy-order{
    

    .address{
        height: 50px;
        background-color: skyblue;
    }



}
</style>